package com.innover.activemq.message;

import java.io.Serializable;

/**
 * Created by James on 8/8/2017.
 */
public class MessageModel implements Serializable {
    private static final long serialVersionUID = -3735816413895482353L;

    private MessageHeader messageHeader;

    private byte[] messageBody;

    public MessageHeader getMessageHeader() {
        return messageHeader;
    }

    public void setMessageHeader(MessageHeader messageHeader) {
        this.messageHeader = messageHeader;
    }

    public byte[] getMessageBody() {
        return messageBody;
    }

    public void setMessageBody(byte[] messageBody) {
        this.messageBody = messageBody;
    }

    public MessageModel(byte[] messageBody) {
        this.messageHeader = new MessageHeader();
        this.messageBody = messageBody;
    }

    public MessageModel(MessageHeader messageHeader, byte[] messageBody) {
        this.messageHeader = messageHeader;
        this.messageBody = messageBody;
    }

    public MessageModel() {
        this.messageHeader = new MessageHeader();
    }
}
